import 'package:json_annotation/json_annotation.dart';
import 'package:libflutter/net/bean/UserInfo.dart';

part 'UserData.g.dart';

@JsonSerializable()
class UserData {
  UserInfo userInfo;
  int? mag;
  String? versionHint;
  String? im;
  bool? grayLevelVerify;
  String? rdToken;
  String? token;

  UserData(
      {required this.userInfo,
        this.mag,
        this.versionHint,
        this.im,
        this.grayLevelVerify,
        this.rdToken,
        this.token});

  /// Connect the generated [_$PersonFromJson] function to the `fromJson`
  /// factory.
  factory UserData.fromJson(Map<String, dynamic> json) => _$UserDataFromJson(json);

  /// Connect the generated [_$PersonToJson] function to the `toJson` method.
  Map<String, dynamic> toJson() => _$UserDataToJson(this);

  @override
  String toString() {
    return 'UserData{userInfo: $userInfo, mag: $mag, versionHint: $versionHint, im: $im, grayLevelVerify: $grayLevelVerify, rdToken: $rdToken, token: $token}';
  }
}
